package com.woniu.teachmall.mapper;

import com.woniu.teachmall.dto.OrderItem;
import com.woniu.teachmall.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderMapper {

    void insertOrder(Order order);

    void insertOrderItem(OrderItem orderItem);

    void updateOrderStatus(String orderId, String status, Date payTime);

    List<OrderItem> getOrder(Integer userId);
}
